package cn.lwalan.serverUtils;

import cn.lwalan.serverUtils.gen.GenServerUtil;

public class GenServerMain {
	
	/**
	 * 默认模版所在的目录
	 */
	private static String TEMPLATESEPATH="/templates/";

	/**
	 * 自动生成代码
	 * @param mapperClass 	mapper类
	 * @param serverName 	Service名字,会自动加上Service or ServiceImpl
	 * @param packageName	包名
	 * @return
	 * @throws Exception
	 */
	public static boolean getCode(Class mapperClass,String serverName,String packageName,
			String author,String version,String desc) throws Exception{
		return GenServerUtil.getServerAndServerImplCode(TEMPLATESEPATH, mapperClass, serverName, packageName, author, version, desc);
	}
	
}
